package com.jcfy.project.module.domain;

import java.math.BigDecimal;
import com.jcfy.framework.aspectj.lang.annotation.Excel;
import com.jcfy.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单商品对象 t_order_goods
 *
 * @author jiangfeng
 * @date 2020-08-05
 */
public class TOrderGoods extends BaseEntity {
    private static final long serialVersionUID=1L;

    /** 主键id */
    private Long orderGoodsId;

    /** 订单ID */
    @Excel(name = "订单ID" )
    private Long orderId;

    /** 供应商ID */
    @Excel(name = "供应商ID" )
    private Long supplierId;

    /** 商品ID */
    @Excel(name = "商品ID" )
    private Long goodsId;

    /** 商品名称 */
    @Excel(name = "商品名称" )
    private String goodsName;

    /** 商品编号 */
    @Excel(name = "商品编号" )
    private String goodsNo;

    /** 购买数量 */
    @Excel(name = "购买数量" )
    private Integer number;

    /** 商品售价 */
    @Excel(name = "商品售价" )
    private BigDecimal price;

    /** 商品规格列表 */
    @Excel(name = "商品规格列表" )
    private String specifications;

    /** 商品图片 */
    @Excel(name = "商品图片" )
    private String picUrl;

    /** 订单商品评论（0：可以评价、1：则超期不能评价、如果其他值，则是comment表里面的评论ID） */
    @Excel(name = "订单商品评论" , readConverterExp = "0=：可以评价、1：则超期不能评价、如果其他值，则是comment表里面的评论ID" )
    private Integer comment;

    /** 状态 */
    @Excel(name = "状态" )
    private Integer status;

    /** 退款跟踪ID */
    @Excel(name = "退款跟踪ID" )
    private Integer refundId;

    /** 代理结算佣金 */
    @Excel(name = "代理结算佣金" )
    private BigDecimal settlementMoney;

    public void setOrderGoodsId(Long orderGoodsId) {
        this.orderGoodsId = orderGoodsId;
    }

    public Long getOrderGoodsId() {
        return orderGoodsId;
    }
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }
    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() {
        return supplierId;
    }
    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() {
        return goodsId;
    }
    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsName() {
        return goodsName;
    }
    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }

    public String getGoodsNo() {
        return goodsNo;
    }
    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getNumber() {
        return number;
    }
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPrice() {
        return price;
    }
    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    public String getSpecifications() {
        return specifications;
    }
    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getPicUrl() {
        return picUrl;
    }
    public void setComment(Integer comment) {
        this.comment = comment;
    }

    public Integer getComment() {
        return comment;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }
    public void setRefundId(Integer refundId) {
        this.refundId = refundId;
    }

    public Integer getRefundId() {
        return refundId;
    }
    public void setSettlementMoney(BigDecimal settlementMoney) {
        this.settlementMoney = settlementMoney;
    }

    public BigDecimal getSettlementMoney() {
        return settlementMoney;
    }

    public TOrderGoods() {
    }

    public TOrderGoods(Long orderId, Integer status) {
        this.orderId = orderId;
        this.status = status;
    }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderGoodsId" ,getOrderGoodsId())
            .append("orderId" ,getOrderId())
            .append("supplierId" ,getSupplierId())
            .append("goodsId" ,getGoodsId())
            .append("goodsName" ,getGoodsName())
            .append("goodsNo" ,getGoodsNo())
            .append("number" ,getNumber())
            .append("price" ,getPrice())
            .append("specifications" ,getSpecifications())
            .append("picUrl" ,getPicUrl())
            .append("comment" ,getComment())
            .append("createTime" ,getCreateTime())
            .append("updateTime" ,getUpdateTime())
            .append("status" ,getStatus())
            .append("refundId" ,getRefundId())
            .append("settlementMoney" ,getSettlementMoney())
            .toString();
    }
}
